import React, { memo } from "react";
import NavBar from "@/components/navBar";
import { renderRoutes } from "react-router-config";
import { Switch } from "react-router-dom";
const Discover = memo((props) => {
  const { route } = props;
  return (
    <>
      <NavBar />
      <Switch>{renderRoutes(route.routes)}</Switch>
    </ >
  );
});
export default Discover;
